package com.qinggeng.project.system.mapper;

import com.qinggeng.project.api.dto.GoodsKeywordsDto;
import com.qinggeng.project.system.domain.GoodsKeywords;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsKeywordsMapper {

    int insertGoodsKeywords(GoodsKeywords keywords);

    int deleteGoodsKeywordsById(Long id);

    int updateGoodsKeywords(GoodsKeywords keywords);

    List<GoodsKeywords> selectGoodsKeywordsList(GoodsKeywords goodsKeywords);

    /**
     * 根据关键词精确查询
     * @param keyword
     * @return
     */
    GoodsKeywords selectGoodsKeywordsByKeyword(String keyword);

    /**
     * 根据关键词模糊查询
     * @param keyword
     * @return
     */
    List<GoodsKeywordsDto> selectGoodsKeywordsListDtoByKeyword(String keyword);

    int insertGoodsKeywordsList(@Param("keywordsList") List<String> keywordsList);
}
